import request from 'umi-request';
import { extendRequest } from '@/utils/request';

export async function queryList(params) {
  return extendRequest('/sysmember/list', {
    method: 'POST',
    data: {
      ...params,
    },
  });
}
export async function removeTest(params) {
  return extendRequest('/sysmember/delete', {
    method: 'POST',
    data: {
      ...params,

    },
  });
}
export async function addTest(params) {
  return extendRequest('/sysmember/add', {
    method: 'POST',
    data: {
      ...params,
    },
  });
}
export async function updateTest(params) {
  return extendRequest('/sysmember/update', {
    method: 'POST',
    data: {
      ...params,
    },
  });
}
export async function queryDepart(params) {
  return request('/api/rule', {
    params,
  });
}
export async function getGroupList(params) {
  return extendRequest('/source/group/list', {
    method: 'POST',
    data: {
      ...params,
    },
  });
}
export async function getUserList(params) {
  return extendRequest('/source/user/list', {
    method: 'POST',
    data: {
      ...params,
    },
  });
}
